package com.sk.waste.app.models

import org.json.JSONObject
import java.io.Serializable

/**
 *  @time 2025/05/01  11:30
 *  @desc 分类-小类
 */
class SubMaterialModel : Serializable {
    var id: String = ""//
    var subcategoryCode: String = ""//
    var subcategoryName: String = ""//
    var parentCategoryId: String = ""//
    var categoryName: String = ""//
    var priority: String = ""
    var status: String = ""
    var isChecked = false

    fun getModelInfo(json: JSONObject) {
        id = json.getString("id")
        subcategoryCode = json.getString("subcategoryCode")
        subcategoryName = json.getString("subcategoryName")
        parentCategoryId = json.getString("parentCategoryId")
        categoryName = json.getString("categoryName")
        priority = json.getString("priority")
        status = json.getString("status")
    }

}